package com.learn.bean;

import java.util.*;

/**
 * @author DJJ_F
 * @version 1.0
 * @date 2024/11/27
 * @description 一个具体的人
 */
public class Morales {
    private String[] hobby;
    private Person[] friends;
    private List<Address> addresses;
    private Set<String> weapons;
    private Map<Integer, String> phones;
    // properties属性类，也是特殊的map，键和值都是字符串
    private Properties properties;

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    public void setFriends(Person[] friends) {
        this.friends = friends;
    }

    public void setAddresses(List<Address> addresses) {
        this.addresses = addresses;
    }

    public void setWeapons(Set<String> weapons) {
        this.weapons = weapons;
    }

    public void setPhones(Map<Integer, String> phones) {
        this.phones = phones;
    }

    @Override
    public String toString() {
        return "Morales{" +
                "hobby=" + Arrays.toString(hobby) +
                ", friends=" + Arrays.toString(friends) +
                ", addresses=" + addresses +
                ", weapons=" + weapons +
                ", phones=" + phones +
                ", properties=" + properties +
                '}';
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

}
